package structureType.composite;

import structureType.composite.employ.IEmployer;
import structureType.composite.employ.impl.ProgrammerImpl;
import structureType.composite.employ.impl.ProjectAssistantImpl;
import structureType.composite.employ.impl.ProjectManagerImpl;

public class Main {
    public static void main(String[] args) {
        IEmployer programmer1 = new ProgrammerImpl("程序员1");
        IEmployer programmer2 = new ProgrammerImpl("程序员2");
        IEmployer assistance = new ProjectAssistantImpl("助理1");
        IEmployer manger = new ProjectManagerImpl("经理");

        manger.add(programmer1);
        manger.add(programmer2);
        manger.add(assistance);

        manger.employerInfo();
    }
}
